package top.lixunda.common.permission.filter;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * 基本的权限拦截器，虽然名称为filter，但实际上是一个回调，整个permission系统只有一个拦截器
 *
 * @author Xumda
 * @version time:2020/1/8 17:13
 */
public interface XumPermissionFilter {

    /**
     * 验证权限
     *
     * @param request  HttpServletRequest
     * @param response HttpServletResponse
     * @return 权限通过返回true，权限不通过返回false
     */
    boolean validPermission(HttpServletRequest request, HttpServletResponse response);

}
